package com.rightsidetech.commom.exception;


import com.rightsidetech.commom.enums.CodeIdEnum;

/**
 * 业务异常
 */
public class BizException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5827674159912277791L;

	private CodeIdEnum errorCodeEnum;

	public BizException() {

	}

	public BizException(String message) {
		super(message);
	}

	public BizException(CodeIdEnum errorCodeEnum) {
		super(errorCodeEnum.getName());
		this.setErrorCodeEnum(errorCodeEnum);
	}

	public CodeIdEnum getErrorCodeEnum() {
		return errorCodeEnum;
	}

	public void setErrorCodeEnum(CodeIdEnum errorCodeEnum) {
		this.errorCodeEnum = errorCodeEnum;
	}

}
